<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript" src="javascript.js" type="text/javascript"></script>
</head>
<body>
<form name="form1" method="post" action="teste.htm">
  <p>CNPJ:<br>
    <input type="text" name="cnpj" maxlength="18" onKeyUp="JavaScript:formatarCNPJ('form1', 'cnpj', event)">
    <input type="button" name="Button" value="Testar CNPJ" onClick="JavaScript:alert(testarCNPJ(document.form1.cnpj.value))">
    <br>
  Data:<br>
  <input type="text" name="data" id="dataTeste">
  <input type="button" name="Button" value="Testar Data" onClick="JavaScript:alert(testarData(document.form1.data))">
    <br>
  Email:<br>
  <input type="text" name="email" id="emailTeste">
  <input type="button" name="Button2" value="Testar Email" onClick="JavaScript:alert(testarEmail(document.form1.email))">
  <br>
  CPF:<br>
  <input type="text" name="cpf" id="CPF">
  <input type="button" name="Button22" value="Testar CPF" onClick="JavaScript:alert(testarCpf(document.form1.cpf))">
</p>
  <p>    <input type="submit" name="Submit" value="Submit">
</p></form>
</body>
</html>